#define GPIOF_MODER  (*(volatile int*)(0x40021400 + 0x00))
#define GPIOF_ODR    (*(volatile int*)(0x40021400 + 0x14))
#define GPIOC_MODER  (*(volatile int*)(0x40020800 + 0x00))
#define GPIOC_ODR    (*(volatile int*)(0x40020800 + 0x14))
#define RCC_AHB1ENR  (*(volatile int*)(0x40023800 + 0x30))
	
void led_init()
{
	RCC_AHB1ENR |= (1 << 2);//C
	RCC_AHB1ENR |= (1 << 5);//F
	
	GPIOF_MODER |= (1 << 18);//0
	GPIOF_MODER &= ~(1 << 19);
	
	GPIOF_MODER |= (1 << 20);//1
	GPIOF_MODER &= ~(1 << 21);
	
	GPIOC_MODER |= (1 << 0);//2
	GPIOC_MODER &= ~(1 << 1);
	
	GPIOF_ODR |= (1<<9);//
	GPIOF_ODR |= (1<<10);
	GPIOC_ODR |= (1<<0);
}

void DS0_NO()
{
	GPIOF_ODR &= ~(1<<9);
}
void DS0_OFF()
{
	GPIOF_ODR |= (1<<9);
}
void DS1_NO()
{
	GPIOF_ODR &= ~(1<<10);
}
void DS1_OFF()
{
	GPIOF_ODR |= (1<<10);
}
void DS2_NO()
{
	GPIOC_ODR &= ~(1<<0);
}
void DS2_OFF()
{
	GPIOC_ODR |= (1<<0);
}
